home *** CD-ROM | disk | FTP | other *** search
/ Pascal Super Library / Pascal Super Library (CW International)(1997).bin / SHELLS / SZ2 / ADEMO0.DEF next >
Text File  |  1992-08-31  |  2KB  |  60 lines

  1. .TUTORIAL - Create MenuBar & Items
  2.  
  3. This definition generates a complete Turbo Vision application.  There
  4. is one SubMenu with two items, no hints.
  5.  
  6. Press Ctrl-F9 to run the program.
  7.  
  8.  
  9. OBSERVATIONS
  10. ------------
  11. 1.  Press F10 for MENU.  A hint appears, to say no hint is available.
  12.     (In the next definition, we'll add hints.)
  13.  
  14. 2.  Select any SubMenu item.  A MsgBox appears; a dummy routine was
  15.     generated for each item.
  16.  
  17. 3.  When code is generated, certain assumptions are made regarding
  18.     names:  The name for a Menu or Status item is "extrapolated" to
  19.     fill out the Turbo Vision syntax:
  20.  
  21.     file      --> hcFile
  22.     open      --> kbNOKEY, cmOpen, hcOpen
  23.     save f2   --> kbF2, cmSave, hcSave
  24.  
  25.     You can override this by supplying a name with proper prefix:
  26.  
  27.     file hcFileMenu --> hcFileMenu
  28.  
  29. NOTES
  30. -----
  31. 1.  If you have not changed the defaults, this program will use
  32.     resources and overlays.  Initialization of both is automatic; see
  33.     the generated *_I.PAS unit for details.
  34.  
  35. 2.  When creating, revising or experimenting with interfaces, you can
  36.     change SETUP|Code options for faster generation and compilation:
  37.  
  38.     [X] Set the Menu, Status, Hint and Dialog options to CODE instead
  39.         of REZ (resources).
  40.     [X] Turn generated comments and dummy routines OFF
  41.     [X] Set "Help text" to "ignore" or turn "Compile help" to "Smart".
  42.     [X] Set all default "StatusLine contexts" to OFF
  43.     [X] Set ExecSwap, Unitize and Overlays OFF
  44.  
  45.     Another way of doing the same, with the [ SWITCH ] keyword, is:
  46.  
  47. .   [ SWITCH ]
  48. .   /1/rem-/r0/ht3/h+/s-/x-/u-/o-
  49.  
  50. 3.  For simpler definitions, you can speed things up by turning off
  51.     the Swap-To-Disk in the SETUP|IDE dialog.
  52.  
  53. @PA - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  54.  
  55.  
  56.  
  57. [ SUBMENU ] File
  58. Open
  59. Save
  60.